<%--
  Created by IntelliJ IDEA.
  User: Elaina
  Date: 2024/4/9
  Time: 10:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:out value="${user}" default="admin"></c:out>
<c:set var="a" value="100"></c:set>
<c:if test="${a==100}">
    hello
</c:if>
<br>
<c:choose>
    <c:when test="${empty param.username}">
        no person
    </c:when>
    <c:when test="${param.username=='zhangsan'}">
        hello,zhangsan
    </c:when>
    <c:otherwise>
        hi,welcome,${param.username}
    </c:otherwise>
</c:choose>
<br>
<c:forEach begin="1" end="100" var="a" step="2">
    ${a}
</c:forEach>
<br>
<% String[]  array={"a","b","c"};%>
<c:forEach items="<%=array%>" var="a">
    ${a}
</c:forEach>
</body>
</html>
